﻿@model IEnumerable<Project.Models.Spaces>

@{
    ViewBag.Title = "Raktár";
}

<h2>Szabad helyek</h2>

<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Rows.RowName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Columns.ColumnName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Levels.LevelName)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Rows.RowName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Columns.ColumnName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Levels.LevelName)
        </td>
        <td>
            @Html.ActionLink("Kiválaszt", "Add", new { id = item.Space_Id, warehouseitemid = ViewBag.WarehouseItemId }, new { @class = "btn btn-primary btn-large" })
        </td>
    </tr>
}

</table>
